#--------------------------------------------------------------------------
# Copyright (c) Microsoft Open Technologies, Inc.
# All Rights Reserved.  Licensed under the Apache License, Version 2.0.
# See License.txt in the project root for license information.
#--------------------------------------------------------------------------
module VagrantPlugins
  module WinAzure
    module Command
      class RDP < Vagrant.plugin('2', :command)
        def self.synopsis
          'opens an RDP session for a vagrant machine'
        end

        def execute
          with_target_vms do |vm|
            vm.action(:rdp)
          end

          0
        end
      end
    end
  end
end
